package com.livegoods.controller;

import com.livegoods.pojo.LivegoodsResult;
import com.livegoods.service.DetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BuytimeController {


    @Autowired
    private DetailsService detailsService;

    @RequestMapping("/buytime")
    public Map<String,Object> buytime(String id){

        Map<String,Object> result = detailsService.buytime(id);

        return result;
    }


}
